<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SUOYUEのONEPIECE</title>

    <!--浏览器导航栏图标-->
    <link rel="shortcut icon" th:href="@{/images/favicon.ico}" />
	<!--引入semantic-ui的CDN-->
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../static/css/me3d.css" th:href="@{/css/me3d.css}">
</head>


<body>
<!--导航栏-->
<!--<nav class="ui inverted gird-header" >-->
<nav id="nav" class="gird-header" style="display: none">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui olive header item" style="font-family: STSong">SUOYUE</h2>
            <a href="#" th:href="@{/}" class="active m-item item m-mobile-hide"><i class="home icon"></i><span th:text="#{index.home}">首页</span></a>
            <a href="#" th:href="@{/hotArticle}" class="m-item item m-mobile-hide"><i class="clone outline icon"></i><span th:text="#{index.hotArticle}">热门文章</span></a>
            <a href="#" th:href="@{/newArticle}" class="m-item item m-mobile-hide"><i class="clock icon"></i><span th:text="#{index.time}">时间轴</span></a>
            <a href="#" th:href="@{/activeUser}" class="m-item item m-mobile-hide"><i class="clone outline icon"></i><span th:text="#{index.user}">活跃好友</span></a>
            <a href="#" th:href="@{/message}" class="m-item item m-mobile-hide"><i class="book icon"></i><span th:text="#{index.messages}">交流区</span></a>
<!--            <a href="#" th:href="@{/echarts}" class="m-item item m-mobile-hide"><i class="clone outline icon"></i><span th:text="#{index.map}">疫情地图</span></a>-->
            <!--            <a href="#" th:href="@{/friends}" class="m-item item m-mobile-hide"><i class="pencil alternate icon"></i><span th:text="#{index.links}">友链</span></a>-->
<!--            <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide"><i class="info icon"></i><span th:text="#{index.me}">关于本站</span></a>-->
            <!--  创作中心  -->
            <h5 class="m-item item m-mobile-hide" style="font-family: STSong"><a href="#" th:href="@{/user/index}" class="ui inverted green rounded button" ><i class="edit icon"></i>创作中心</a></h5>

            <!--  用户头像  -->
            <div class="left m-item m-mobile-hide menu" th:if="${session.user}">
                <div class="ui dropdown item">
                    <div class="text">
                        <img class="ui avatar image" src="../../static/images/me.jpg" th:src="${session.user.avatar}">
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="" th:href="@{/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>
            <!--  搜索栏  -->
            <div class="right m-item item m-mobile-hide">
                <form name="search" action="#" th:action="@{/search}" method="post" target="_blank">
                    <div class="ui icon transparent input m-margin-tb-tiny" style="color: white">
                        <input style="color: white" type="text" name="query" placeholder="Search....">
                        <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--手机端收起导航栏-->
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!-- 雪花特效 -->
<div class="snow-container"></div>

<!--顶部图片-->
<div class="m-bg-class_outer" style="width: 100%;height: 720px">
    <img src="../static/images/bg.jpg" th:src="@{/images/bg.jpg}" alt="" class="ui m-bg image" style="width: 100%;height: 100%">

    <div class="m-bg-class_cover" align="center">

        <div class="m-padded-tb-massivexx">

        <div class="m-font-size-title" align="center">LOGIN MORE EXCITING</div>

        <div class="m-padded-tb-massivex" align="center">
            <a href="#" th:href="@{/login}" class="ui big teal button"><i class="user icon"></i>登 录</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#" th:href="@{/register}" class="ui big gray button"><i class="user icon"></i>注 册</a>
        </div>

        <div id="waypoint" class="m-padded-tb-massivex"></div>

        <div class="" align="center">
            <a href="#" class="ui tencent circular icon button"><i class="user icon"></i></a>
            <a href="#" class="ui gg circular icon button"><i class="gg circle icon"></i></a>
            <a href="#" class="ui wechat circular icon button"><i class="weixin icon"></i></a>
            <a href="#" class="ui qq circular icon button" data-content="1665741813" data-position="bottom center"><i class="qq icon"></i></a>
            <a href="https://gitee.com/suoyue__zhan" target="_blank" class="ui github circular icon button" data-content="点击跳转Gitee" data-position="bottom center"><i class="git icon"></i></a>
            <a href="https://blog.csdn.net/suoyue_py" target="_blank" class="ui csdn circular icon button" data-content="点击跳转CSDN" data-position="bottom center"><i class="copyright outline icon"></i></a>
            <a href="#" class="ui email circular icon button" data-content="suoyue_zhan@163.com" data-position="bottom center"><i class="envelope  icon"></i></a>
        </div>

        <div class="ui tencent-qr flowing popup transition hidden">
            <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" alt="" class="ui rounded image" style="width: 110px">
            <div align="center">公众号</div>
        </div>
        <div class="ui gg-qr flowing popup transition hidden">
            <img src="../static/images/wechatMini.jpg" th:src="@{/images/wechatMini.jpg}" alt="" class="ui rounded image" style="width: 110px">
            <div align="center">小程序</div>
        </div>
        <div class="ui wechat-qr flowing popup transition hidden">
            <img src="../static/images/suoyue.jpg" th:src="@{/images/suoyue.jpg}" alt="" class="ui rounded image" style="width: 110px">
            <div align="center">微信</div>
        </div>
        <div class="ui qq-qr flowing popup transition hidden">
            <img src="../static/images/qq.png" th:src="@{/images/qq.png}" alt="" class="ui rounded image" style="width: 110px">
            <div align="center">QQ</div>
        </div>

        <hr style="width: 24%">
        <div class="hiddenDiv"></div>
    </div>
</div>

</div>

<!--推荐好友-->
<div class="ui m-padded-tb-massive">
    <div class="ui m-container-small m-opacity">
        <div class="ui secondary segment " align="center">
            <i class="bookmark icon"></i><a href="" th:href="@{/activeUser}">推荐好友</a>
        </div>
    </div>
    <div class="mydd">
        <section style="background: url(http://suoyue.top/images/me.jpg) no-repeat;background-size: contain">
            <div class="m-margin-tb-tiny four wide column" th:each="user: ${userList}" th:style="'background-image:url('+*{user.avatar}+')'">
                <a  href="#" th:href="@{/oneUser/-1/{id}(id=${user.id})}" target="_blank">
                    <span>
                     <h4 class="m-font-size-blog-text" style="padding-left:10px;margin: 5px 0" th:text="${user.username}">添加雪花效果</h4>
                    </span>
                </a>
            </div>
        </section>
    </div>
</div>

<!--热门文章-->
<div class="m-padded-tb animated fadeIn">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--博客内容-->
            <div class="ui vertical segment">
                <div class="ui m-container-small m-opacity">
                    <div class="ui secondary segment " align="center">
                        <i class="bookmark icon"></i><a href="" th:href="@{/hotArticle}">热门文章</a>
                    </div>
                </div>
                <!--博文列表-->
                <div class="ui padded segment m-padded-tb-large m-opacity" th:each="page: ${hotPageInfo}">
                    <!-- mobile reversed:手机端翻转下列两个div模块-图片先显示/内容后显示-->
                    <div class="ui large aligned mobile reversed stackable grid">
                        <!--博文信息-->
                        <div class="eleven wide column" >
                            <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${page.id})}" target="_blank" class="m-black" th:text="${page.title}">大圣，此去欲何?</a></h3>
                            <p class="m-text m-margin-top-max" th:text="${page.description}">戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回” 其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
                            <div class="ui m-margin-top-max grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img  src="../static/images/me.jpg" th:src="${page.avatar}" alt="" class="ui avatar image">
                                            <div class="content"><a href="#" th:href="@{/oneUser/-1/{id}(id=${page.userId})}" target="_blank" class="header" th:text="${page.username}">oneStar</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span th:text="${#dates.format(page.updateTime,'yyyy-MM-dd HH:mm:ss')}">2020-01-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i> <span th:text="${page.views}">2222</span>
                                        </div>
                                        <div class="item">
                                            <i class="comment outline icon"></i> <span th:text="${page.commentCount}">2222</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <a href="#" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${page.typeName}">好文</a>
                                </div>
                            </div>
                        </div>
                        <!--博文图片-->
                        <div class="five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${page.id})}" target="_blank">
                                <img src="../static/images/backimg1.jpg" th:src="${page.firstPicture}" alt="" class="ui rounded image">
                            </a>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--最新推荐-->
<div class="m-padded-tb animated fadeIn">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--博客内容-->
            <div class="ui vertical segment">
                <div class="ui m-container-small m-opacity">
                    <div class="ui secondary segment " align="center">
                        <i class="bookmark icon"></i><a href="" th:href="@{/newArticle}">最新推荐</a>
                    </div>
                </div>
                <!--博文列表-->
                <div class="ui padded segment m-padded-tb-large m-opacity" th:each="page: ${newPageInfo}">
                    <!-- mobile reversed:手机端翻转下列两个div模块-图片先显示/内容后显示-->
                    <div class="ui large aligned mobile reversed stackable grid">
                        <!--博文信息-->
                        <div class="eleven wide column" >
                            <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${page.id})}" target="_blank" class="m-black" th:text="${page.title}">大圣，此去欲何?</a></h3>
                            <p class="m-text m-margin-top-max" th:text="${page.description}">戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回” 其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
                            <div class="ui m-margin-top-max grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img  src="../static/images/me.jpg" th:src="${page.avatar}" alt="" class="ui avatar image">
                                            <div class="content"><a href="#" th:href="@{/oneUser/-1/{id}(id=${page.userId})}" target="_blank" class="header" th:text="${page.username}">oneStar</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span th:text="${#dates.format(page.updateTime,'yyyy-MM-dd HH:mm:ss')}">2020-01-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i> <span th:text="${page.views}">2222</span>
                                        </div>
                                        <div class="item">
                                            <i class="comment outline icon"></i> <span th:text="${page.commentCount}">2222</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <a href="#" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${page.typeName}">好文</a>
                                </div>
                            </div>
                        </div>
                        <!--博文图片-->
                        <div class="five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${page.id})}" target="_blank">
                                <img src="../static/images/backimg1.jpg" th:src="${page.firstPicture}" alt="" class="ui rounded image">
                            </a>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<br>
<br>
<br>

<!--右下角-侧边栏-->
<div id="toolbar" class="m-padded m-fixed m-right-bottom" style="display: none">
    <div class="ui vertical icon buttons ">
        <div id="toTop-button" class="ui icon button" ><i class="chevron up icon"></i></div>
    </div>
</div>

<!--底部栏-->
<footer class="ui inverted vertical segment m-padded-tb-massive m-opacity" th:replace="_fragments :: footer">

</footer>

<!--通用script：使用div标签或thymeleaf模板的th:block-->
<th:block th:replace="_fragments :: script">

</th:block>

<script src="//cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>
<script src="../static/lib/waypoints/jquery.waypoints.min.js" th:src="@{/lib/waypoints/jquery.waypoints.min.js}"></script>
<!--雪花效果-->
<script src="http://www.lmlblog.com/winter/templets/xq/js/snowy.js"></script>
<script src="http://www.lmlblog.com/blog/12/js/Snow.js"></script>
<style type="text/css">
    .snow-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:100001;}
</style>

<script>

    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-show');
    });

    $('.ui.dropdown').dropdown({
        on : 'hover'
    });

    // 显示公众号
    $('.tencent').popup({
        popup : $('.tencent-qr'),
        position: 'bottom center'
    });
    // 显示小程序
    $('.gg').popup({
        popup : $('.gg-qr'),
        position: 'bottom center'
    });
    // 显示微信
    $('.wechat').popup({
        popup : $('.wechat-qr'),
        position: 'bottom center'
    });
    // 显示QQ
    $('.qq').popup({
        popup : $('.qq-qr'),
        position: 'bottom center'
    });
    // 显示邮箱
    $('.email').popup();
    // 显示CSDN
    $('.csdn').popup();
    // 显示gitee
    $('.github').popup();

    // 导航栏显示
    var waypoint = new Waypoint({
        element: document.getElementById('waypoint'),
        handler: function(direction) {
            if (direction == 'down') {
                $('#nav').show(500);
            } else {
                $('#nav').hide(500);
            }
            console.log('Scrolled to waypoint!  ' + direction);
        }
    });

    //右下角点击滚上去事件
    $('#toTop-button').click(function () {
        $(window).scrollTo(0,500);
    });
    //滚动侦测
    var waypoint = new Waypoint({
        element: document.getElementById('waypoint'),
        handler: function(direction) {
            if (direction == 'down') {
                $('#toolbar').show(100);
            } else {
                $('#toolbar').hide(500);
            }
            console.log('Scrolled to waypoint!  ' + direction);
        }
    })
</script>


<!--看板娘-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js"></script>

</body>
</html>